@extends('layout.default')

@section('layout.content')
  <div class="row">
    <div class="col-xs-12">
      <a class="btn btn-primary" href="{{route('education.plan.create', $method)}}"><i class="ace-icon fa fa-plus"></i>培训计划</a>
    </div>
  </div>
  <div class="space-4"></div>
  <div class="row">
    @foreach( $plans as $plan)
      <div class="col-xs-12 col-sm-6 col-md-4 channel-row">

        <div class="thumbnail search-thumbnail channel-href" data-aid="{{$plan->id}}">

          <div class="caption">
            <div class="panel-title"><a
                  href="{{ route('education.plan.edit',array($method, $plan->id)) }}">{!! $plan->present()->showtitle !!}</a>
            </div>
            <div class="panel-body channel-property">
              <div class="panel-l"></div>
            </div>
            <div class="panel-body">
              <div class="panel-25"><a href="{{ route('education.category.index',array($method, $plan->id)) }}"
                                       class="orange">{{$plan->categories->count()}}</a>
                <p>类别</p></div>
              <div class="panel-25"><a href="{{ route('education.grade.index',array($method, $plan->id)) }}"
                                       class="pink2">{{$plan->grades->count()}}</a>
                <p>{!!$plan->present()->categoryTitle!!}</p></div>
              <div class="panel-25"><a href="{{ route('education.grade.index',array($method, $plan->id)) }}"
                                       class="blue">{{$plan->totals()}}</a>
                <p>招生</p></div>
              <div class="panel-25"><a href="{{ route('education.enrol.index',array('pid'=>$plan->id)) }}"
                                       class="green">{{$plan->etotals->count()}}</a>
                <p>报名</p></div>
            </div>

          </div>

        </div>
      </div>
    @endforeach
  </div><!-- /.row -->

@stop

@section('javascript')

@stop